package edu.pku.hawk.controller.util;

import java.io.Serializable;


public class ProcDes implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8380680450674083629L;
	public boolean isConbine;
	public int[] detectorTypes;
	
	public static ProcDes EmptyProcess() {
		ProcDes pd = new ProcDes();
		pd.isConbine = false;
		return pd;
	}
	
	public static ProcDes defaultProcess() {
		ProcDes pd = new ProcDes();
		pd.isConbine = true;
		return pd;
	}
	
	public boolean needFusion() {
		if (detectorTypes != null ) {
			for(int i=0 ; i<detectorTypes.length ;i++) {
				if (detectorTypes[i] == Constants.TYPE_COMBINATION) {
					return true;
				}
			}
		}
		return false;
	}
}
